
const state = {
    userInfo: {
        username: "tmp"
    }
}

const mutations = {
    SET_USER_INFO: (state, info) => {
        state.userInfo = info
    }
}

const actions = {
    setUserInfo({ commit }, info) {
        commit('SET_USER_INFO', info)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
